// Given an IP, this class returns the subnet mask. all funcs are static for to make it convenient :)

#ifndef IP2SUBNETMASK_H
#define IP2SUBNETMASK_H

#include<iostream>
#include<string>
#include<vector>

#include<sstream>
#include<algorithm>
#include<ctype.h>
#include <cmath>
using namespace std;
class ip2subnetmask
{
public:
    static vector<string> string_split (string str, string delimiters = ".r");
    static int log2(int a);
    static string ip2snm(string ip);
    static string int2string(int i);
};

#endif // IP2SUBNETMASK_H
